// PhoneDlg.cpp : implementation file
//

#include "stdafx.h"
#include "resourcemakeDlg.h"
#include "CfgPhoneDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCfgPhoneDlg dialog


CCfgPhoneDlg::CCfgPhoneDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCfgPhoneDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCfgPhoneDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CCfgPhoneDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCfgPhoneDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCfgPhoneDlg, CDialog)
	//{{AFX_MSG_MAP(CCfgPhoneDlg)
	ON_BN_CLICKED(IDC_RADIOPhone1, OnRADIOPhone1)
	ON_BN_CLICKED(IDC_RADIOPhone10, OnRADIOPhone10)
	ON_BN_CLICKED(IDC_RADIOPhone2, OnRADIOPhone2)
	ON_BN_CLICKED(IDC_RADIOPhone3, OnRADIOPhone3)
	ON_BN_CLICKED(IDC_RADIOPhone4, OnRADIOPhone4)
	ON_BN_CLICKED(IDC_RADIOPhone5, OnRADIOPhone5)
	ON_BN_CLICKED(IDC_RADIOPhone6, OnRADIOPhone6)
	ON_BN_CLICKED(IDC_RADIOPhone7, OnRADIOPhone7)
	ON_BN_CLICKED(IDC_RADIOPhone8, OnRADIOPhone8)
	ON_BN_CLICKED(IDC_RADIOPhone9, OnRADIOPhone9)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCfgPhoneDlg message handlers

BOOL CCfgPhoneDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	((CButton*)GetDlgItem(IDC_RADIOPhone1))->SetCheck(TRUE);   
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CCfgPhoneDlg::OnRADIOPhone1() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =162;
	pDlgBase->height = 216;
}

void CCfgPhoneDlg::OnRADIOPhone10() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =640;
	pDlgBase->height = 480;	
}

void CCfgPhoneDlg::OnRADIOPhone2() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =176;
	pDlgBase->height = 208;	
}

void CCfgPhoneDlg::OnRADIOPhone3() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =176;
	pDlgBase->height = 220;	
}

void CCfgPhoneDlg::OnRADIOPhone4() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =208;
	pDlgBase->height = 208;	
}

void CCfgPhoneDlg::OnRADIOPhone5() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =208;
	pDlgBase->height = 320;	
}

void CCfgPhoneDlg::OnRADIOPhone6() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =240;
	pDlgBase->height = 320;	
}

void CCfgPhoneDlg::OnRADIOPhone7() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =240;
	pDlgBase->height = 400;	
}

void CCfgPhoneDlg::OnRADIOPhone8() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =320;
	pDlgBase->height = 240;	
}

void CCfgPhoneDlg::OnRADIOPhone9() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =352;
	pDlgBase->height = 416;	
}
